let obj =
    {
        "msg": "查询成功",
        "data": [
            {
                "id": "77i99SsGHpaKkcM2yzvklPgh",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "淄博市临淄区",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "4",
                "lxwayname": "4.通过结合本职工作开展谈心交流、收集社情民意等",
                "startdate": "2024-04-25",
                "enddate": "2024-04-25",
                "content": "通过跟当地种粮大户，新型经营主体，农民等座谈交流，交流鲜食产业发展需求。",
                "lxdx": "",
                "lxjbqzcount": 10,
                "zxwyname": "刘霞",
                "zxwyid": "22CT7ZeeOIoBXDKQpxWpl",
                "addpersonid": "eb7ef9b9-ea6b-40f9-a21e-4ff038414d03",
                "addpersonname": "刘霞",
                "adddate": "2024-12-09 17:53:42",
                "lastupdatepersonid": "eb7ef9b9-ea6b-40f9-a21e-4ff038414d03",
                "lastupdatepersonname": "刘霞",
                "lastupdatedate": "2024-12-09 17:53:42",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "22CT7ZeeOIoBXDKQpxWpl",
                    "zxwyname": "刘霞",
                    "zxwycode": "0216",
                    "firstmobile": "18660132779",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "6hosFBoowjdFlCd23lu9W18c",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "青岛高新区",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "4",
                "lxwayname": "4.通过结合本职工作开展谈心交流、收集社情民意等",
                "startdate": "2024-10-08",
                "enddate": "2024-10-08",
                "content": "利用举办青岛国际电子消费博览会的机会，邀请各党派代表人士一起参观座谈交流，拉内需促销费惠民生的方式和举措。",
                "lxdx": "",
                "lxjbqzcount": 10,
                "zxwyname": "高燕",
                "zxwyid": "5athoQOo73M6YdK5JEG6dq",
                "addpersonid": "4215a01d-af6f-4483-9b86-c05c0101866d",
                "addpersonname": "高燕",
                "adddate": "2024-12-09 17:56:04",
                "lastupdatepersonid": "4215a01d-af6f-4483-9b86-c05c0101866d",
                "lastupdatepersonname": "高燕",
                "lastupdatedate": "2024-12-09 17:56:04",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "5athoQOo73M6YdK5JEG6dq",
                    "zxwyname": "高燕",
                    "zxwycode": "0091",
                    "firstmobile": "18553205858",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "7eEUVhkm7hW5q1y1yPuVijsw",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "淄博市博山区",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "4",
                "lxwayname": "4.通过结合本职工作开展谈心交流、收集社情民意等",
                "startdate": "2024-03-08",
                "enddate": "2024-03-08",
                "content": "到博山区源泉镇北崮山村调研，并举行了助力乡村振兴科技书籍捐赠仪式",
                "lxdx": "",
                "lxjbqzcount": 30,
                "zxwyname": "刘霞",
                "zxwyid": "22CT7ZeeOIoBXDKQpxWpl",
                "addpersonid": "eb7ef9b9-ea6b-40f9-a21e-4ff038414d03",
                "addpersonname": "刘霞",
                "adddate": "2024-12-09 17:57:42",
                "lastupdatepersonid": "eb7ef9b9-ea6b-40f9-a21e-4ff038414d03",
                "lastupdatepersonname": "刘霞",
                "lastupdatedate": "2024-12-09 17:57:42",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "22CT7ZeeOIoBXDKQpxWpl",
                    "zxwyname": "刘霞",
                    "zxwycode": "0216",
                    "firstmobile": "18660132779",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "6f0AN5kMTnwMjkJ1KUuUhqyN",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "青岛康复大学",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "2",
                "lxwayname": "2.通过参加专委会或界别开展的调研、视察、考察活动",
                "startdate": "2024-05-30",
                "enddate": "2024-05-30",
                "content": "为推动康复大学各项事业高质量发展，加强对外合作交流，促进科研成果转化，提高人才培养质量，同省政协社会福利和社会保障届及医药卫生届部分委员，一起到康复大学调研座谈，推进进行合作、交流。",
                "lxdx": "",
                "lxjbqzcount": 16,
                "zxwyname": "王明耿",
                "zxwyid": "CtdNO7Sq5VaYlzZIynR5a",
                "addpersonid": "934aa511-79c8-441a-aca4-6532da4d620d",
                "addpersonname": "王明耿",
                "adddate": "2024-12-09 18:19:54",
                "lastupdatepersonid": "934aa511-79c8-441a-aca4-6532da4d620d",
                "lastupdatepersonname": "王明耿",
                "lastupdatedate": "2024-12-09 18:19:54",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "CtdNO7Sq5VaYlzZIynR5a",
                    "zxwyname": "王明耿",
                    "zxwycode": "0600",
                    "firstmobile": "15005300191",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "8GQm5fn08wzAwTh1mAV6AFOY",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "省直联合支部党员之家",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "4",
                "lxwayname": "4.通过结合本职工作开展谈心交流、收集社情民意等",
                "startdate": "2024-05-15",
                "enddate": "2024-05-15",
                "content": "结合支部换届后增强组织凝聚力问题，通过与支部党员交流，做好党员思想政治工作，增强支部活力，通过经常性开展支部活动，凝聚力量，增进共识。",
                "lxdx": "",
                "lxjbqzcount": 31,
                "zxwyname": "李振友",
                "zxwyid": "8YzWcxzYZ0l13yEmzceye8",
                "addpersonid": "199230ad-6b17-49a2-97ce-2558b07fc175",
                "addpersonname": "李振友",
                "adddate": "2024-12-09 18:20:17",
                "lastupdatepersonid": "199230ad-6b17-49a2-97ce-2558b07fc175",
                "lastupdatepersonname": "李振友",
                "lastupdatedate": "2024-12-09 18:20:17",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "8YzWcxzYZ0l13yEmzceye8",
                    "zxwyname": "李振友",
                    "zxwycode": "0064",
                    "firstmobile": "13953163236",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "8Wqznqo48uAZnSR23acmn8J6",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "青岛高新区蓝色生物医药产业园3号楼1",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "3",
                "lxwayname": "3.通过界别同心汇等平台",
                "startdate": "2024-12-07",
                "enddate": "2024-12-07",
                "content": "通过和相关群众交流，调研老百姓对中医生活化的意见和看法，了解到老百姓对中医生活化是非常欢迎的，但是也反映了有影响中医生活化健康发展的不利因素，形成《建议多维发力推进中医生活化健康发展》的社情民意。1",
                "lxdx": "",
                "lxjbqzcount": 9,
                "zxwyname": "付先军",
                "zxwyid": "4SlkG5QhgBa5hp8tYYYMlJ",
                "addpersonid": "c792a3bf-d2f0-4380-9242-82a2808a7604",
                "addpersonname": "付先军",
                "adddate": "2024-12-09 18:13:37",
                "lastupdatepersonid": "admin",
                "lastupdatepersonname": "管理员",
                "lastupdatedate": "2024-12-19 09:20:14",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "4SlkG5QhgBa5hp8tYYYMlJ",
                    "zxwyname": "付先军",
                    "zxwycode": "0606",
                    "firstmobile": "18663955769",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "65ND66jXsklRnAG2iDExjfWD",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "济南市市中区舜耕街道舜华社区",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "4",
                "lxwayname": "4.通过结合本职工作开展谈心交流、收集社情民意等",
                "startdate": "2024-12-03",
                "enddate": "2024-12-03",
                "content": "深入舜华社区，为群众讲解太阳能发电、电动汽车及电动自行车充电桩常识，提高群众对绿色电力、绿色低碳生活的认识。",
                "lxdx": "",
                "lxjbqzcount": 36,
                "zxwyname": "于希明",
                "zxwyid": "9LomeVnFlcc6czuKph9VBB",
                "addpersonid": "5b491f0a-7acd-432c-a144-e508f0c30d18",
                "addpersonname": "于希明",
                "adddate": "2024-12-09 17:58:55",
                "lastupdatepersonid": "5b491f0a-7acd-432c-a144-e508f0c30d18",
                "lastupdatepersonname": "于希明",
                "lastupdatedate": "2024-12-09 17:58:55",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "9LomeVnFlcc6czuKph9VBB",
                    "zxwyname": "于希明",
                    "zxwycode": "0367",
                    "firstmobile": "13605312742",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "5iR8YcwQAj90q7K2o8YTXUJm",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "济南市",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "2",
                "lxwayname": "2.通过参加专委会或界别开展的调研、视察、考察活动",
                "startdate": "2024-12-02",
                "enddate": "2024-12-02",
                "content": "跨境电商主体认定，消费品以旧换新等座谈交流",
                "lxdx": "",
                "lxjbqzcount": 5,
                "zxwyname": "刘霞",
                "zxwyid": "22CT7ZeeOIoBXDKQpxWpl",
                "addpersonid": "eb7ef9b9-ea6b-40f9-a21e-4ff038414d03",
                "addpersonname": "刘霞",
                "adddate": "2024-12-09 18:11:48",
                "lastupdatepersonid": "eb7ef9b9-ea6b-40f9-a21e-4ff038414d03",
                "lastupdatepersonname": "刘霞",
                "lastupdatedate": "2024-12-09 18:11:48",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "22CT7ZeeOIoBXDKQpxWpl",
                    "zxwyname": "刘霞",
                    "zxwycode": "0216",
                    "firstmobile": "18660132779",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "5RDhkiwLzr8mqYQ1HamDtLRs",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "齐鲁师范学院学前教育学院会议室",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "4",
                "lxwayname": "4.通过结合本职工作开展谈心交流、收集社情民意等",
                "startdate": "2024-09-05",
                "enddate": "2024-09-05",
                "content": "调研幼儿园小学阶段体育活动开展情况，指出体育对儿童心理健康，身体健康的意义。",
                "lxdx": "",
                "lxjbqzcount": 11,
                "zxwyname": "常爱玲",
                "zxwyid": "VLvv7arc7m5brdq09ozOy",
                "addpersonid": "568ae14a-a76f-4263-9893-fff3c2e05b82",
                "addpersonname": "常爱玲",
                "adddate": "2024-12-09 18:15:45",
                "lastupdatepersonid": "admin",
                "lastupdatepersonname": "管理员",
                "lastupdatedate": "2024-12-19 09:30:13",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "VLvv7arc7m5brdq09ozOy",
                    "zxwyname": "常爱玲",
                    "zxwycode": "0125",
                    "firstmobile": "18678866788",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "9aMuK5sFSwLMmub1EUTv98MT",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "孙继业",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "2",
                "lxwayname": "2.通过参加专委会或界别开展的调研、视察、考察活动",
                "startdate": "2024-12-11",
                "enddate": "2024-12-11",
                "content": "孙继业",
                "lxdx": "",
                "lxjbqzcount": 3,
                "zxwyname": "孙继业",
                "zxwyid": "58UpYG0L11V4zwNBMH2O4Q",
                "addpersonid": "admin",
                "addpersonname": "管理员",
                "adddate": "2024-12-19 09:59:25",
                "lastupdatepersonid": "admin",
                "lastupdatepersonname": "管理员",
                "lastupdatedate": "2024-12-19 10:53:10",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "58UpYG0L11V4zwNBMH2O4Q",
                    "zxwyname": "孙继业",
                    "zxwycode": "0005",
                    "firstmobile": "13969095601",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "5WuDEymoLnyMw5c1PGeBwlwM",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "山东省荣成市南山北路98号",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "4",
                "lxwayname": "4.通过结合本职工作开展谈心交流、收集社情民意等",
                "startdate": "2024-08-12",
                "enddate": "2024-08-12",
                "content": "与从事对外进出口贸易的群众开展交流，了解在对外贸易政策、金融支持、进出口通关等方面存在的困难和需求。",
                "lxdx": "",
                "lxjbqzcount": 6,
                "zxwyname": "车宝臻",
                "zxwyid": "6hGmQW7SLua68uA6HzRe5L",
                "addpersonid": "8da8ed26-6f9d-465e-96ce-69923981dc53",
                "addpersonname": "车宝臻",
                "adddate": "2024-12-09 17:52:40",
                "lastupdatepersonid": "admin",
                "lastupdatepersonname": "管理员",
                "lastupdatedate": "2024-12-19 09:35:37",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "6hGmQW7SLua68uA6HzRe5L",
                    "zxwyname": "车宝臻",
                    "zxwycode": "0641",
                    "firstmobile": "18606306688",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            },
            {
                "id": "58SLfCsikwWYp491qG29pGMs",
                "activitytype": 10,
                "activitytypename": "'委员联系界别群众'",
                "place": "白琪文",
                "organizationalform": "",
                "organizationalformname": "",
                "lxway": "1",
                "lxwayname": "1.通过参加政协组织的全体会议、常委会会议、月度协商会等（邀请界别群众列席的）",
                "startdate": "2024-12-18",
                "enddate": "2024-12-18",
                "content": "白琪文",
                "lxdx": "",
                "lxjbqzcount": 12,
                "zxwyname": "白琪文",
                "zxwyid": "aUfvFkzliwl4Nz5W2le634",
                "addpersonid": "admin",
                "addpersonname": "管理员",
                "adddate": "2024-12-19 09:33:40",
                "lastupdatepersonid": "admin",
                "lastupdatepersonname": "管理员",
                "lastupdatedate": "2024-12-19 10:53:10",
                "personInfo": {
                    "committeemanyear": "2024",
                    "zxwyid": "aUfvFkzliwl4Nz5W2le634",
                    "zxwyname": "白琪文",
                    "zxwycode": "1049",
                    "firstmobile": "17207213611",
                    "periodid": "62bc62ba-094c-409c-96af-643d18217fde",
                    "periodshortname": "第十三届",
                    "periodnumber": " ",
                    "periodarabic": "13",
                    "persontypeid": "1"
                }
            }
        ],
        "success": true
    };

console.log(getGroupMap(obj.data))

function getGroupMap(arr) {
    return arr.reduce((group, item) => {
        const {activitytype} = item;
        group[activitytype] = group[activitytype] ? group[activitytype] : [];
        group[activitytype].push(item);
        return group;
    }, {})

}
